<template>
  <div id="app">
    <keep-alive>
      <router-view/>
    </keep-alive>
  </div>
</template>
<script>
export default {
  name:'app',
  created(){
    this.$store.commit('INIT_USERINFO')
    //验证登录是否过期
    this.$axios({
      url:'/api/token',
      method:'post',
      headers:{
        authorization:this.$store.state.user.token
      }
    })
  }
}
</script>
<style lang="scss">
</style>
